package com.tongcao.cn.oauth.handler;

import com.tongcao.cn.oauth.cons.CodeEnum;
import com.tongcao.cn.oauth.props.BaiduFounderProperties;
import com.tongcao.cn.oauth.props.TencentFounderProperties;
import com.tongcao.cn.oauth.vo.PersonVO;

/**
 * @author:tongcao
 * @since:2019/11/22 11:39
 * Description:
 */
public class TencentJumpHandler extends BaseJumpHandler<TencentFounderProperties> {

    @Override
    public String getCode() {
        return CodeEnum.TENCENT.getCode();
    }

    /**
     * 实体对象
     *
     * @return
     */
    @Override
    public PersonVO getPersonVO() {
        PersonVO vo = PersonVO.builder().createName(jumpProperties.getCreateName()).education(jumpProperties.getEducation()).marketValue(jumpProperties.getMarketValue()).rank(jumpProperties.getRank()).baseInfoUrl(jumpProperties.getBaseInfoUrl()).build();
        return vo;
    }
}